package com.t2t.top;

interface TestInterFaceX {
    void print2();
}

interface TestInterFace extends TestInterFaceX {
    void print1();
}

class NoNameClass {

    public TestInterFace dest1() {
        return null;
    }

    public TestInterFace dest() {

        return new TestInterFace() {
            @Override
            public void print2() {

            }

            public void print1() {
                System.out.println("Hello world!!");
            }
        };

    }

    public static void main(String args[]) {
        NoNameClass c = new NoNameClass();
        TestInterFace hw = c.dest();
        hw.print1();
    }

} 